//Type here your validation function
//Use elemValue as a value of your validated element
//    neededValue as a value to compare with elemValue
//Function must returns true if validation is successful
//                      false otherwise
function notEmpty() {
    if (elemValue == "") {
        return true;
    } else {
        return false;
    };
};

function getErrorMessage() {
    //Type here default error message for this validator depending on locale.
    //It's could be replaced by validation options for every used element.
    //You can use %value% to place a current value of validated element and
    //you can use %neededValue% too
    var messages = {"en" : "Value can\'t be empty!",
                    "ru" : "Значение не может быть пустым!"};
    messages = $.extend(messages, messagesCur);

    return messages[locale];
};
